package com.github.catvod.spider;

import android.util.Base64;
import com.github.catvod.crawler.Spider;
import com.github.catvod.crawler.SpiderDebug;
import com.github.catvod.parser.C0000;
import com.github.catvod.parser.C0001;
import com.github.catvod.parser.C0002;
import com.github.catvod.parser.C0003;
import com.github.catvod.parser.C0004;
import com.github.catvod.parser.C0005;
import com.github.catvod.parser.C0006;
import com.github.catvod.parser.C0007;
import com.github.catvod.parser.C0008;
import com.github.catvod.parser.C0009;
import com.github.catvod.spider.merge.C0011;
import com.github.catvod.spider.merge.C0012;
import com.github.catvod.spider.merge.C0014;
import com.github.catvod.spider.merge.C0015;
import com.github.catvod.spider.merge.CE;
import com.github.catvod.spider.merge.L;
import com.github.catvod.spider.merge.fP;
import com.github.catvod.spider.merge.jP;
import com.github.catvod.spider.merge.vH;
import java.net.URLEncoder;
import java.util.HashMap;
import okhttp3.Call;
import org.json.JSONArray;
import org.json.JSONObject;

/* loaded from: classes.dex */
public class Muou extends Spider {

    /* renamed from: short, reason: not valid java name */
    private static final short[] f42short = {2293, 2289, 2290, 2286, 2286, 2282, 2229, 2217, 2228, 2219, 2222, 2228, 2211, 2272, 2246, 2256, 2247, 2200, 2292, 2258, 2256, 2267, 2241, 1589, 1559, 1538, 1553, 1556, 1556, 1561, 1623, 1613, 1622, 1608, 1624, 1616, 1588, 1553, 1558, 1549, 1536, 1603, 1624, 1593, 1558, 1564, 1546, 1559, 1553, 1564, 1624, 1609, 1610, 1617, 1624, 1593, 1544, 1544, 1556, 1565, 1583, 1565, 1562, 1587, 1553, 1548, 1623, 1613, 1611, 1615, 1622, 1611, 1614, 1624, 1616, 1587, 1584, 1580, 1589, 1588, 1620, 1624, 1556, 1553, 1555, 1565, 1624, 1599, 1565, 1563, 1555, 1559, 1617, 1624, 1595, 1552, 1546, 1559, 1557, 1565, 1623, 1601, 1610, 1622, 1608, 1622, 1612, 1613, 1609, 1613, 1622, 1609, 1608, 1613, 1624, 1589, 1581, 1591, 1581, 1593, 1576, 1576, 1623, 1609, 1608, 1622, 1600, 1622, 1612, 1613, 1608, 1614, 1622, 1612, 1608, 1608, 2635, 2651, 2632, 2631, 2637, 2564, 2628, 2630, 2637, 2636, 2629, 623, 625, 529, 633, 521, 526, 522, 524, 2348, 2365, 2365, 2400, 2345, 2344, 2363, 2340, 2350, 2344, 3306, 3307, 3296, 3301, 3312, 3301, 1819, 1802, 1802, 1879, 1806, 1811, 1815, 1823, 2274, 2280, 2274, 2236, 2279, 2292, 2275, 2274, 2296, 2302, 2303, 3126, 3125, 464, 465, 450, 477, 471, 465, 2474, 2486, 2515, 2556, 2550, 2528, 2557, 2555, 2550, 1667, 1682, 1682, 1743, 1684, 1671, 1680, 1681, 1675, 1677, 1676, 3084, 3116, 833, 795, 791, 795, 502, 434, 427, 439, 438, 1429, 1491, 1492, 1500, 1493, 1428, 1482, 1490, 1482, 2927, 763, 304, 1041, 1037, 1024, 1048, 1028, 1043, 1039, 1024, 1036, 1028, 1523, 1519, 1506, 1530, 1510, 1521, 1513, 1514, 1510, 1512, 1516, 1526, 2767, 2774, 2781, 2790, 2763, 2780, 2772, 2776, 2763, 2770, 2762, 1855, 1830, 1837, 1814, 1849, 1824, 1834, 3023, 3030, 3037, 3046, 3031, 3032, 3028, 3036, 1410, 1435, 1424, 1451, 1437, 1424, 2020, 2017, 2043, 2044, 2088, 2150, 2167, 2158, 2089, 2167, 2159, 2167, 2088, 2161, 2102, 2089, 2161, 2152, 2147, 2104, 2163, 2174, 2167, 2146, 2106, 2770, 2711, 2712, 2709, 2695, 2695, 2761, 2770, 2709, 2694, 2705, 2709, 2761, 2770, 2701, 2705, 2709, 2694, 2761, 2770, 2710, 2701, 2761, 2688, 2717, 2713, 2705, 2770, 2692, 2709, 2707, 2705, 2761, 480, 426, 431, 427, 431, 434, 507, 755, 758, 739, 758, 2666, 2673, 2664, 2664, 1948, 1933, 1931, 1929, 2309, 2324, 2322, 2320, 2326, 2330, 2304, 2331, 2305, 1851, 1854, 1850, 1854, 1827, 1425, 1418, 1425, 1412, 1417, 2164, 2152, 2149, 2173, 2145, 2166, 2139, 2157, 2154, 2146, 2155, 499, 499, 499, 1532, 1509, 1518, 1493, 1513, 1509, 1508, 1534, 1519, 1508, 1534, 1714, 1707, 1696, 1691, 1696, 1709, 1718, 1697, 1703, 1712, 1707, 1718, 1114, 1091, 1096, 1139, 1101, 1103, 1112, 1091, 1118, 517, 542, 519, 519, 1383, 1406, 1397, 1358, 1392, 1379, 1396, 1392, 625, 616, 611, 600, 638, 610, 614, 629, 283, 258, 265, 306, 285, 260, 270, 2693, 2716, 2711, 2732, 2717, 2706, 2718, 2710, 1859, 1882, 1873, 1898, 1884, 1873, 2602, 2607, 2613, 2610, 1980, 2034, 2019, 2042, 1981, 2019, 2043, 2019, 1980, 2021, 1954, 1981, 2021, 2044, 2039, 1980, 2039, 2038, 2023, 2034, 2042, 2047, 1964, 2021, 2044, 2039, 1996, 2042, 2039, 1966, 2553, 2556, 2537, 2556, 1879, 1882, 1875, 1862, 1916, 1869, 1858, 1870, 1862, 859, 834, 841, 882, 846, 833, 844, 862, 862, 2129, 2120, 2115, 2168, 2133, 2114, 2122, 2118, 2133, 2124, 2132, 2055, 1244, 1221, 1230, 1269, 1240, 1231, 1223, 1227, 1240, 1217, 1241, 1854, 1831, 1836, 1815, 1848, 1828, 1833, 1841, 1815, 1828, 1825, 1851, 1852, 2633, 2642, 2645, 2637, 1852, 1832, 1845, 1847, 1328, 1335, 1321, 1334, 1581, 1578, 1588, 2919, 2920, 2916, 2924, 3147, 1527, 3296, 1486, 1495, 1500, 1511, 1480, 1492, 1497, 1473, 1511, 1502, 1482, 1495, 1493, 846, 855, 860, 871, 840, 852, 857, 833, 871, 845, 842, 852, 1785, 1780, 1789, 1768, 1746, 1764, 1769, 2917, 2920, 2913, 2932, 2894, 2943, 2928, 2940, 2932, 627, 638, 631, 610, 619, 622, 628, 627, 3300, 3242, 3259, 3234, 3301, 3259, 3235, 3259, 3300, 3261, 3322, 3301, 3261, 3236, 3247, 3300, 3263, 3250, 3259, 3246, 3256, 508, 505, 492, 505, 2628, 2635, 2630, 2644, 2644, 1452, 1461, 1470, 1413, 1448, 1471, 1463, 1467, 1448, 1457, 1449, 3292, 3269, 3278, 3317, 3290, 3267, 3273, 2999, 2990, 2981, 2974, 2991, 2976, 2988, 2980, 981, 972, 967, 1020, 970, 967, 2381, 2388, 2399, 2404, 2391, 2386, 2376, 2383, 2638, 2560, 2577, 2568, 2639, 2577, 2569, 2577, 2638, 2583, 2640, 2639, 2583, 2574, 2565, 2638, 2601, 2574, 2572, 2564, 2600, 2575, 2565, 2564, 2585, 2654, 2577, 2560, 2566, 2564, 2652, 2631, 2573, 2568, 2572, 2568, 2581, 2652, 2647, 1463, 1458, 1447, 1458, 2603, 2606, 2612, 2611, 1746, 1742, 1731, 1755, 1735, 1744, 1739, 1740, 1732, 1741, 1910, 1848, 1833, 1840, 1911, 1833, 1841, 1833, 1894, 1848, 1850, 1837, 1840, 1846, 1847, 1892, 1833, 1845, 1848, 1824, 1852, 1835, 1840, 1847, 1855, 1846, 643, 646, 659, 646, 2879, 2650, 2630, 2630, 2626, 3159, 3142, 3157, 3156, 3138, 1013, 1010, 1004, 267, 3122, 3180, 3114, 3175, 2582, 2571, 2639, 2739, 2730, 2721, 2714, 2743, 2720, 2728, 2724, 2743, 2734, 2742, 2675, 2666, 2657, 2650, 2677, 2668, 2662, 2575, 2582, 2589, 2598, 2583, 2584, 2580, 2588, 514, 539, 528, 555, 541, 528, 2543, 2538, 2544, 2551, 2638, 2560, 2577, 2568, 2639, 2577, 2569, 2577, 2638, 2583, 2640, 2639, 2583, 2574, 2565, 2654, 2582, 2565, 2652, 2848, 2922, 2927, 2923, 2927, 2930, 2875, 2871, 2878, 2848, 2934, 2919, 2913, 2915, 2875, 2871, 3165, 3160, 3149, 3160, 837, 862, 839, 839};
    JSONArray W;
    private String h = "";
    private String V0 = "";
    private String j = "";
    private String q = C0006.m18(f42short, 0, 13, 2202);
    private String I = "";
    private String oC = "";
    private String BQ = "";
    private String u = "";
    private String Qy = "";

    public Muou() {
        int m32 = C0009.m32();
        int i = 1616;
        while (true) {
            i ^= 1633;
            switch (i) {
                case 14:
                case 49:
                    i = m32 >= 0 ? 1709 : 1678;
                case 204:
                    System.out.println(Float.decode(C0009.m31("9WY")));
                    break;
                case 239:
                    break;
            }
            return;
        }
    }

    /* JADX WARN: Failed to find 'out' block for switch in B:3:0x0010. Please report as an issue. */
    private HashMap<String, String> BQ(String str) {
        boolean isEmpty = str.isEmpty();
        int i = 1616;
        while (true) {
            i ^= 1633;
            switch (i) {
                case 14:
                case 49:
                    i = isEmpty ? 1709 : 1678;
                case 204:
                    str = String.valueOf(System.currentTimeMillis() / 1000);
                    break;
                case 239:
                    break;
            }
        }
        HashMap<String, String> hashMap = new HashMap<>();
        hashMap.put(C0015.m47(f42short, 13, 10, 2229), C0000.m1(f42short, 23, 113, 1656));
        hashMap.put(C0017.m52(f42short, 136, 11, 2601), C0008.m27(f42short, 147, 8, 572));
        hashMap.put(C0002.m6(f42short, 155, 10, 2381), C0002.m6(f42short, 165, 6, 3204));
        hashMap.put(C0009.m30(f42short, 171, 8, 1914), str);
        hashMap.put(C0002.m6(f42short, 179, 11, 2193), C0005.m17(f42short, 190, 2, 3079));
        hashMap.put(C0000.m1(f42short, 192, 6, 436), vH.h(16));
        hashMap.put(C0011.m35(f42short, 198, 2, 2501), C0011.m35(f42short, 200, 7, 2450));
        hashMap.put(C0006.m18(f42short, 207, 11, 1762), this.j);
        return hashMap;
    }

    /* JADX WARN: Failed to find 'out' block for switch in B:17:0x0056. Please report as an issue. */
    /* JADX WARN: Failed to find 'out' block for switch in B:3:0x0035. Please report as an issue. */
    private void I() {
        String[] split = new String(Base64.decode(this.BQ.substring(1), 0)).split(C0018.m56(f42short, 218, 2, 3152));
        boolean endsWith = split[0].endsWith(C0008.m27(f42short, 220, 4, 879));
        int i = 1616;
        while (true) {
            i ^= 1633;
            switch (i) {
                case 14:
                case 49:
                    i = !endsWith ? 1709 : 1678;
                case 204:
                    boolean endsWith2 = split[0].endsWith(C0003.m9(f42short, 224, 5, 472));
                    int i2 = 1740;
                    while (true) {
                        i2 ^= 1757;
                        switch (i2) {
                            case 17:
                                i2 = endsWith2 ? 1833 : 1802;
                            case 54:
                            case 471:
                                this.Qy = split[0];
                                int i3 = 48767;
                                while (true) {
                                    i3 ^= 48784;
                                    switch (i3) {
                                        case 14:
                                            break;
                                        case 239:
                                            i3 = 48798;
                                            break;
                                    }
                                }
                                break;
                            case 500:
                                int i4 = 1864;
                                while (true) {
                                    i4 ^= 1881;
                                    switch (i4) {
                                        case 17:
                                            i4 = 48674;
                                            break;
                                        case 47483:
                                            break;
                                    }
                                }
                                break;
                        }
                    }
                    break;
                case 239:
                    break;
            }
        }
        this.Qy = fP.oq(split[0], null);
        this.V0 = split[1];
        this.j = split[2];
        String str = this.Qy + C0009.m30(f42short, 229, 9, 1466);
        HashMap hashMap = new HashMap();
        String valueOf = String.valueOf(System.currentTimeMillis() / 1000);
        String lowerCase = CE.V0(valueOf + this.V0).toLowerCase();
        String lowerCase2 = CE.V0(valueOf + lowerCase).toLowerCase();
        hashMap.put(C0015.m47(f42short, 238, 1, 2843), valueOf);
        hashMap.put(C0009.m30(f42short, 239, 1, 662), lowerCase2);
        hashMap.put(C0015.m47(f42short, 240, 1, 350), lowerCase);
        fP.BQ(fP.j(), str, hashMap, BQ(valueOf), new L.yh(this, lowerCase2) { // from class: com.github.catvod.spider.Muou.1

            /* renamed from: short, reason: not valid java name */
            private static final short[] f43short = {2071, 2058, 2062, 2054, 2203, 2206, 2187, 2206, 1730, 1740, 1744, 873, 886, 1239, 1245, 1262, 1262, 1561, 1555, 1571, 1595, 1595, 1590};
            final String V0;
            final Muou j;

            {
                this.j = this;
                this.V0 = lowerCase2;
                int m32 = C0009.m32();
                int i5 = 1616;
                while (true) {
                    i5 ^= 1633;
                    switch (i5) {
                        case 14:
                        case 49:
                            i5 = m32 >= 0 ? 1709 : 1678;
                        case 204:
                            System.out.println(Integer.parseInt(C0014.m42("IRaA66JmOoVE5A")));
                            break;
                        case 239:
                            break;
                    }
                    return;
                }
            }

            @Override // com.github.catvod.spider.merge.L
            public void onFailure(Call call, Exception exc) {
                int m48 = C0016.m48();
                int i5 = 1616;
                while (true) {
                    i5 ^= 1633;
                    switch (i5) {
                        case 14:
                        case 49:
                            i5 = m48 <= 0 ? 1709 : 1678;
                        case 204:
                            System.out.println(Double.valueOf(C0015.m46("FKxUT7cWMgoUMe7OLVFDkWVzAPPlX")));
                            break;
                        case 239:
                            break;
                    }
                    return;
                }
            }

            @Override // com.github.catvod.spider.merge.L
            public String onResponse(String str2) {
                try {
                    JSONObject jSONObject = new JSONObject(str2);
                    JSONObject jSONObject2 = new JSONObject(jP.oC(jSONObject.getString(C0000.m1(f43short, 4, 4, 2303)), CE.h(String.valueOf(jSONObject.getLong(C0017.m52(f43short, 0, 4, 2147))), CE.V0).substring(0, 16), CE.h(this.V0, CE.V0).substring(0, 16)));
                    this.j.I = CE.h(jSONObject2.getString(C0008.m27(f43short, 8, 3, 1705)), CE.V0).substring(0, 16);
                    this.j.oC = CE.h(jSONObject2.getString(C0007.m26(f43short, 11, 2, 768)), CE.V0).substring(0, 16);
                    this.j.h = jSONObject2.getString(C0006.m18(f43short, 13, 4, 1183));
                    this.j.u = jSONObject2.getString(C0009.m30(f43short, 17, 6, 1617));
                } catch (Exception e) {
                    int i5 = 1616;
                    while (true) {
                        i5 ^= 1633;
                        switch (i5) {
                            case 14:
                                break;
                            case 49:
                                i5 = 1647;
                                break;
                        }
                    }
                }
                return str2;
            }
        });
    }

    /* JADX WARN: Code restructure failed: missing block: B:58:0x0074, code lost:
    
        r0 = 48891;
     */
    /* JADX WARN: Code restructure failed: missing block: B:59:0x0077, code lost:
    
        r0 = r0 ^ 48908;
     */
    /* JADX WARN: Code restructure failed: missing block: B:60:0x007b, code lost:
    
        switch(r0) {
            case 22: goto L71;
            case 503: goto L72;
            default: goto L74;
        };
     */
    /* JADX WARN: Code restructure failed: missing block: B:62:0x007f, code lost:
    
        throw r1;
     */
    /* JADX WARN: Code restructure failed: missing block: B:64:0x0084, code lost:
    
        r0 = 48922;
     */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
        To view partially-correct add '--show-bad-code' argument
    */
    private java.lang.String oC(java.lang.String r7) {
        /*
            r6 = this;
            r0 = 0
            r1 = r0
        L2:
            org.json.JSONArray r0 = r6.W     // Catch: org.json.JSONException -> L63
            int r2 = r0.length()     // Catch: org.json.JSONException -> L63
            r0 = 1616(0x650, float:2.264E-42)
        La:
            r0 = r0 ^ 1633(0x661, float:2.288E-42)
            switch(r0) {
                case 14: goto L10;
                case 49: goto L13;
                case 204: goto L18;
                case 239: goto L61;
                default: goto Lf;
            }     // Catch: org.json.JSONException -> L63
        Lf:
            goto La
        L10:
            r0 = 1678(0x68e, float:2.351E-42)
            goto La
        L13:
            if (r1 >= r2) goto L10
            r0 = 1709(0x6ad, float:2.395E-42)
            goto La
        L18:
            org.json.JSONArray r0 = r6.W     // Catch: org.json.JSONException -> L63
            org.json.JSONObject r2 = r0.getJSONObject(r1)     // Catch: org.json.JSONException -> L63
            short[] r0 = com.github.catvod.spider.Muou.f42short     // Catch: org.json.JSONException -> L63
            r3 = 241(0xf1, float:3.38E-43)
            r4 = 10
            r5 = 1121(0x461, float:1.571E-42)
            java.lang.String r0 = com.github.catvod.parser.C0008.m27(r0, r3, r4, r5)     // Catch: org.json.JSONException -> L63
            java.lang.String r0 = r2.getString(r0)     // Catch: org.json.JSONException -> L63
            boolean r3 = r7.equals(r0)     // Catch: org.json.JSONException -> L63
            r0 = 1740(0x6cc, float:2.438E-42)
        L34:
            r0 = r0 ^ 1757(0x6dd, float:2.462E-42)
            switch(r0) {
                case 17: goto L3a;
                case 54: goto L3f;
                case 471: goto L53;
                case 500: goto L42;
                default: goto L39;
            }     // Catch: org.json.JSONException -> L63
        L39:
            goto L34
        L3a:
            if (r3 == 0) goto L3f
            r0 = 1833(0x729, float:2.569E-42)
            goto L34
        L3f:
            r0 = 1802(0x70a, float:2.525E-42)
            goto L34
        L42:
            short[] r0 = com.github.catvod.spider.Muou.f42short     // Catch: org.json.JSONException -> L63
            r1 = 251(0xfb, float:3.52E-43)
            r3 = 12
            r4 = 1411(0x583, float:1.977E-42)
            java.lang.String r0 = com.github.catvod.parser.C0008.m27(r0, r1, r3, r4)     // Catch: org.json.JSONException -> L63
            java.lang.String r0 = r2.getString(r0)     // Catch: org.json.JSONException -> L63
        L52:
            return r0
        L53:
            int r1 = r1 + 1
            r0 = 1864(0x748, float:2.612E-42)
        L57:
            r0 = r0 ^ 1881(0x759, float:2.636E-42)
            switch(r0) {
                case 17: goto L5d;
                case 47483: goto L2;
                default: goto L5c;
            }
        L5c:
            goto L57
        L5d:
            r0 = 48674(0xbe22, float:6.8207E-41)
            goto L57
        L61:
            r0 = 0
            goto L52
        L63:
            r0 = move-exception
            java.lang.RuntimeException r1 = new java.lang.RuntimeException
            r1.<init>(r0)
            r0 = 48767(0xbe7f, float:6.8337E-41)
        L6c:
            r2 = 48784(0xbe90, float:6.8361E-41)
            r0 = r0 ^ r2
            switch(r0) {
                case 14: goto L74;
                case 239: goto L80;
                default: goto L73;
            }
        L73:
            goto L6c
        L74:
            r0 = 48891(0xbefb, float:6.8511E-41)
        L77:
            r2 = 48908(0xbf0c, float:6.8535E-41)
            r0 = r0 ^ r2
            switch(r0) {
                case 22: goto L7f;
                case 503: goto L84;
                default: goto L7e;
            }
        L7e:
            goto L77
        L7f:
            throw r1
        L80:
            r0 = 48798(0xbe9e, float:6.838E-41)
            goto L6c
        L84:
            r0 = 48922(0xbf1a, float:6.8554E-41)
            goto L77
        */
        throw new UnsupportedOperationException("Method not decompiled: com.github.catvod.spider.Muou.oC(java.lang.String):java.lang.String");
    }

    /* JADX WARN: Failed to find 'out' block for switch in B:110:0x018e. Please report as an issue. */
    /* JADX WARN: Failed to find 'out' block for switch in B:55:0x010b. Please report as an issue. */
    public String categoryContent(String str, String str2, boolean z, HashMap<String, String> hashMap) {
        JSONArray jSONArray;
        int i;
        String m56 = C0018.m56(f42short, 263, 11, 2745);
        String m37 = C0012.m37(f42short, 274, 7, 1865);
        String m3 = C0001.m3(f42short, 281, 8, 3001);
        String m26 = C0007.m26(f42short, 289, 6, 1524);
        String m17 = C0005.m17(f42short, 295, 4, 1928);
        try {
            boolean isEmpty = this.h.isEmpty();
            int i2 = 1616;
            while (true) {
                i2 ^= 1633;
                switch (i2) {
                    case 14:
                    case 49:
                        i2 = isEmpty ? 1709 : 1678;
                    case 204:
                        I();
                        break;
                    case 239:
                        break;
                }
            }
            int parseInt = Integer.parseInt(str2);
            int i3 = 1740;
            while (true) {
                i3 ^= 1757;
                switch (i3) {
                    case 17:
                        if (parseInt != 0) {
                            break;
                        } else {
                            i3 = 1833;
                        }
                    case 54:
                        break;
                    case 471:
                        break;
                    case 500:
                        parseInt = 1;
                        break;
                    default:
                        continue;
                }
                i3 = 1802;
            }
            String str3 = this.h + C0007.m26(f42short, 299, 21, 2055) + str + C0015.m47(f42short, 320, 33, 2804) + str2 + C0007.m26(f42short, 353, 7, 454) + 18;
            JSONArray jSONArray2 = new JSONArray();
            String oq = fP.oq(str3, BQ(""));
            boolean contains = oq.contains(m17);
            String m32 = C0001.m3(f42short, 360, 4, 663);
            int i4 = 1864;
            while (true) {
                i4 ^= 1881;
                switch (i4) {
                    case 17:
                        i4 = contains ? 48736 : 48705;
                    case 47384:
                        jSONArray = new JSONObject(jP.oC(oq, this.I, this.oC)).getJSONObject(m32).getJSONArray(m17);
                        break;
                    case 47417:
                        jSONArray = new JSONObject(oq).getJSONObject(m32).getJSONArray(m17);
                        int i5 = 48767;
                        while (true) {
                            i5 ^= 48784;
                            switch (i5) {
                                case 14:
                                    break;
                                case 239:
                                    i5 = 48798;
                                    continue;
                                default:
                                    continue;
                            }
                        }
                        break;
                    case 47483:
                }
            }
            int i6 = 0;
            while (true) {
                int length = jSONArray.length();
                int i7 = 48891;
                while (true) {
                    i7 ^= 48908;
                    switch (i7) {
                        case 22:
                        case 53:
                            break;
                        case 503:
                            i7 = i6 < length ? 49635 : 48953;
                        case 32495:
                            JSONObject jSONObject = jSONArray.getJSONObject(i6);
                            JSONObject jSONObject2 = new JSONObject();
                            jSONObject2.put(m26, jSONObject.getString(m26));
                            jSONObject2.put(m3, jSONObject.getString(m3));
                            jSONObject2.put(m37, jSONObject.optString(m37));
                            String optString = jSONObject.optString(m56);
                            boolean equals = optString.equals(C0000.m1(f42short, 364, 4, 2564));
                            int i8 = 49666;
                            while (true) {
                                i8 ^= 49683;
                                switch (i8) {
                                    case 17:
                                        i8 = equals ? 49759 : 49728;
                                    case 50:
                                    case 76:
                                        optString = "";
                                        break;
                                    case 83:
                                        break;
                                }
                            }
                            jSONObject2.put(m56, optString);
                            jSONArray2.put(jSONObject2);
                            int i9 = i6 + 1;
                            int i10 = 49790;
                            while (true) {
                                i10 ^= 49807;
                                switch (i10) {
                                    case 18:
                                        break;
                                    case 241:
                                        i10 = 49821;
                                }
                            }
                            i6 = i9;
                            break;
                    }
                    JSONObject jSONObject3 = new JSONObject();
                    jSONObject3.put(C0018.m56(f42short, 368, 4, 2028), parseInt);
                    int length2 = jSONArray2.length();
                    int i11 = 49914;
                    while (true) {
                        i11 ^= 49931;
                        switch (i11) {
                            case 497:
                                if (length2 != 18) {
                                    break;
                                } else {
                                    i11 = 50658;
                                }
                            case 1711:
                                break;
                            case 1736:
                                i = parseInt;
                                break;
                            case 1769:
                                i = parseInt + 1;
                                break;
                            default:
                                continue;
                        }
                        i11 = 50627;
                    }
                    jSONObject3.put(C0008.m27(f42short, 372, 9, 2421), i);
                    jSONObject3.put(C0007.m26(f42short, 381, 5, 1879), 18);
                    jSONObject3.put(C0006.m18(f42short, 386, 5, 1509), Integer.MAX_VALUE);
                    jSONObject3.put(m17, jSONArray2);
                    return jSONObject3.toString();
                }
            }
        } catch (Exception e) {
            SpiderDebug.log(e);
            return "";
        }
    }

    /* JADX WARN: Code restructure failed: missing block: B:159:0x03ac, code lost:
    
        r3 = 51588;
     */
    /* JADX WARN: Code restructure failed: missing block: B:160:0x03af, code lost:
    
        r3 = r3 ^ 51605;
     */
    /* JADX WARN: Code restructure failed: missing block: B:161:0x03b3, code lost:
    
        switch(r3) {
            case 17: goto L172;
            case 54: goto L173;
            default: goto L175;
        };
     */
    /* JADX WARN: Code restructure failed: missing block: B:163:0x03b7, code lost:
    
        r3 = 51619;
     */
    /* JADX WARN: Code restructure failed: missing block: B:167:0x03bf, code lost:
    
        throw r4;
     */
    /* JADX WARN: Code restructure failed: missing block: B:41:0x0136, code lost:
    
        r5 = r3;
     */
    /* JADX WARN: Failed to find 'out' block for switch in B:75:0x024b. Please report as an issue. */
    /* JADX WARN: Failed to find 'out' block for switch in B:95:0x02b9. Please report as an issue. */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
        To view partially-correct add '--show-bad-code' argument
    */
    public java.lang.String detailContent(java.util.List<java.lang.String> r25) {
        /*
            Method dump skipped, instructions count: 1118
            To view this dump add '--comments-level debug' option
        */
        throw new UnsupportedOperationException("Method not decompiled: com.github.catvod.spider.Muou.detailContent(java.util.List):java.lang.String");
    }

    /* JADX WARN: Code restructure failed: missing block: B:41:0x009b, code lost:
    
        r2 = r0;
     */
    /* JADX WARN: Failed to find 'out' block for switch in B:45:0x00ae. Please report as an issue. */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
        To view partially-correct add '--show-bad-code' argument
    */
    public java.lang.String homeContent(boolean r10) {
        /*
            Method dump skipped, instructions count: 362
            To view this dump add '--comments-level debug' option
        */
        throw new UnsupportedOperationException("Method not decompiled: com.github.catvod.spider.Muou.homeContent(boolean):java.lang.String");
    }

    /* JADX WARN: Failed to find 'out' block for switch in B:44:0x00e1. Please report as an issue. */
    public String homeVideoContent() {
        JSONArray jSONArray;
        String m47 = C0015.m47(f42short, 671, 11, 1498);
        String m3 = C0001.m3(f42short, 682, 7, 3242);
        String m37 = C0012.m37(f42short, 689, 8, 3009);
        String m472 = C0015.m47(f42short, 697, 6, 931);
        String m52 = C0017.m52(f42short, 703, 8, 2363);
        try {
            boolean isEmpty = this.h.isEmpty();
            int i = 1616;
            while (true) {
                i ^= 1633;
                switch (i) {
                    case 14:
                    case 49:
                        i = isEmpty ? 1709 : 1678;
                    case 204:
                        I();
                        break;
                    case 239:
                        break;
                }
            }
            JSONArray jSONArray2 = new JSONArray();
            String oq = fP.oq(this.h + C0018.m56(f42short, 711, 39, 2657), BQ(""));
            boolean contains = oq.contains(m52);
            String m6 = C0002.m6(f42short, 750, 4, 1491);
            int i2 = 1740;
            while (true) {
                i2 ^= 1757;
                switch (i2) {
                    case 17:
                        i2 = contains ? 1833 : 1802;
                    case 54:
                    case 471:
                        jSONArray = new JSONObject(jP.oC(oq, this.I, this.oC)).getJSONArray(m6).getJSONObject(2).getJSONArray(m52);
                        break;
                    case 500:
                        jSONArray = new JSONObject(oq).getJSONArray(m6).getJSONObject(2).getJSONArray(m52);
                        int i3 = 1864;
                        while (true) {
                            i3 ^= 1881;
                            switch (i3) {
                                case 17:
                                    i3 = 48674;
                                    continue;
                                case 47483:
                                    break;
                                default:
                                    continue;
                            }
                        }
                        break;
                }
            }
            int i4 = 0;
            while (true) {
                int length = jSONArray.length();
                int i5 = 48767;
                while (true) {
                    i5 ^= 48784;
                    switch (i5) {
                        case 14:
                        case 45:
                            break;
                        case 76:
                            JSONObject jSONObject = jSONArray.getJSONObject(i4);
                            String string = jSONObject.getString(m472);
                            String string2 = jSONObject.getString(m37);
                            String string3 = jSONObject.getString(m3);
                            String string4 = jSONObject.getString(m47);
                            JSONObject jSONObject2 = new JSONObject();
                            jSONObject2.put(m472, string);
                            jSONObject2.put(m37, string2);
                            jSONObject2.put(m3, string3);
                            jSONObject2.put(m47, string4);
                            jSONArray2.put(jSONObject2);
                            int i6 = i4 + 1;
                            int i7 = 48891;
                            while (true) {
                                i7 ^= 48908;
                                switch (i7) {
                                    case 22:
                                        break;
                                    case 503:
                                        i7 = 48922;
                                        break;
                                }
                            }
                            i4 = i6;
                            break;
                        case 239:
                            i5 = i4 < length ? 48860 : 48829;
                    }
                    JSONObject jSONObject3 = new JSONObject();
                    jSONObject3.put(C0011.m35(f42short, 754, 4, 2631), jSONArray2);
                    return jSONObject3.toString();
                }
            }
        } catch (Exception e) {
            SpiderDebug.log(e);
            return "";
        }
    }

    /* JADX WARN: Code restructure failed: missing block: B:9:0x0014, code lost:
    
        return;
     */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
        To view partially-correct add '--show-bad-code' argument
    */
    public void init(android.content.Context r2, java.lang.String r3) {
        /*
            r1 = this;
            java.lang.String r0 = "ۣۡۤ"
        L2:
            int r0 = com.github.catvod.parser.C0006.m20(r0)
            switch(r0) {
                case 1748768: goto Le;
                case 1749793: goto L14;
                default: goto L9;
            }
        L9:
            r1.BQ = r3
            java.lang.String r0 = "ۢۦۥ"
            goto L2
        Le:
            super.init(r2)
            java.lang.String r0 = "ۧۨ۟"
            goto L2
        L14:
            return
        */
        throw new UnsupportedOperationException("Method not decompiled: com.github.catvod.spider.Muou.init(android.content.Context, java.lang.String):void");
    }

    /* JADX WARN: Code restructure failed: missing block: B:44:0x00ba, code lost:
    
        r1 = r0;
     */
    /* JADX WARN: Code restructure failed: missing block: B:78:0x0151, code lost:
    
        r1 = r0;
     */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
        To view partially-correct add '--show-bad-code' argument
    */
    public java.lang.String playerContent(java.lang.String r10, java.lang.String r11, java.util.List<java.lang.String> r12) {
        /*
            Method dump skipped, instructions count: 672
            To view this dump add '--comments-level debug' option
        */
        throw new UnsupportedOperationException("Method not decompiled: com.github.catvod.spider.Muou.playerContent(java.lang.String, java.lang.String, java.util.List):java.lang.String");
    }

    /* JADX WARN: Failed to find 'out' block for switch in B:44:0x00ee. Please report as an issue. */
    public String searchContent(String str, boolean z) {
        JSONArray jSONArray;
        String m1 = C0000.m1(f42short, 819, 11, 2757);
        String m47 = C0015.m47(f42short, 830, 7, 2565);
        String m26 = C0007.m26(f42short, 837, 8, 2681);
        String m12 = C0004.m12(f42short, 845, 6, 628);
        String m122 = C0004.m12(f42short, 851, 4, 2435);
        try {
            JSONArray jSONArray2 = new JSONArray();
            boolean isEmpty = this.h.isEmpty();
            int i = 1616;
            while (true) {
                i ^= 1633;
                switch (i) {
                    case 14:
                    case 49:
                        i = isEmpty ? 1709 : 1678;
                    case 204:
                        I();
                        break;
                    case 239:
                        break;
                }
            }
            String oq = fP.oq(this.h + C0015.m47(f42short, 855, 19, 2657) + URLEncoder.encode(str) + C0007.m26(f42short, 874, 16, 2822), BQ(""));
            boolean contains = oq.contains(m122);
            String m17 = C0005.m17(f42short, 890, 4, 3129);
            int i2 = 1740;
            while (true) {
                i2 ^= 1757;
                switch (i2) {
                    case 17:
                        i2 = contains ? 1833 : 1802;
                    case 54:
                    case 471:
                        jSONArray = new JSONObject(jP.oC(oq, this.I, this.oC)).getJSONObject(m17).getJSONArray(m122);
                        break;
                    case 500:
                        jSONArray = new JSONObject(oq).getJSONObject(m17).getJSONArray(m122);
                        int i3 = 1864;
                        while (true) {
                            i3 ^= 1881;
                            switch (i3) {
                                case 17:
                                    i3 = 48674;
                                    continue;
                                case 47483:
                                    break;
                                default:
                                    continue;
                            }
                        }
                        break;
                }
            }
            int i4 = 0;
            while (true) {
                int length = jSONArray.length();
                int i5 = 48767;
                while (true) {
                    i5 ^= 48784;
                    switch (i5) {
                        case 14:
                        case 45:
                            break;
                        case 76:
                            JSONObject jSONObject = jSONArray.getJSONObject(i4);
                            JSONObject jSONObject2 = new JSONObject();
                            jSONObject2.put(m12, jSONObject.getString(m12));
                            jSONObject2.put(m26, jSONObject.getString(m26));
                            jSONObject2.put(m47, jSONObject.optString(m47));
                            String optString = jSONObject.optString(m1);
                            boolean equals = optString.equals(C0009.m30(f42short, 894, 4, 811));
                            int i6 = 48891;
                            while (true) {
                                i6 ^= 48908;
                                switch (i6) {
                                    case 22:
                                    case 53:
                                        break;
                                    case 503:
                                        i6 = equals ? 49635 : 48953;
                                    case 32495:
                                        optString = "";
                                        break;
                                }
                            }
                            jSONObject2.put(m1, optString);
                            jSONArray2.put(jSONObject2);
                            int i7 = i4 + 1;
                            int i8 = 49666;
                            while (true) {
                                i8 ^= 49683;
                                switch (i8) {
                                    case 17:
                                        i8 = 49697;
                                        break;
                                    case 50:
                                        break;
                                }
                            }
                            i4 = i7;
                            break;
                        case 239:
                            i5 = i4 < length ? 48860 : 48829;
                    }
                    JSONObject jSONObject3 = new JSONObject();
                    jSONObject3.put(m122, jSONArray2);
                    return jSONObject3.toString();
                }
            }
        } catch (Exception e) {
            SpiderDebug.log(e);
            return "";
        }
    }
}
